#ifndef GFR_COCKROFT_GAULT_FORMULA_H
#define GFR_COCKROFT_GAULT_FORMULA_H
#include "abstractformula.h"


class GFR_Cockroft_Gault_Formula : public AbstractFormula
{
public:
    GFR_Cockroft_Gault_Formula()
        :AbstractFormula(tr("GFR (Cockroft-Gault)")){}

    /*!
    *  \brief GFR
    *  Return GFR in mL/min
    *  \param age in years
    *  \param weight in kg
    *  \param creatinine in micromol/l
    *  \param sexe true mean Male false mean woman
    */

    double result(int age, double weight, double creatinine, bool sexe)
    {
        if (sexe)
            return (140-age) * (weight)  / (72 * creatinine);
        else
            return (140-age) * (weight) *0.85  / (72 * creatinine);
    }
};


#endif // GFR_COCKROFT_GAULT_FORMULA_H
